<div class="formbody">
    <div class="formtitle">
        <span>基本信息</span>
    </div>
    <form action="" method="post" accept-charset="utf-8">
        <ul class="forminfo">
            <li>
                <label>手机号码</label>
                <?php if (empty($user)): ?>
                    <input type="text" name="phone" value="" class="dfinput">
                <?php else: ?>
                    <input type="text" name="phone" value="<?php echo $user['phone'] ?>" readonly class="dfinput">
                <?php endif; ?>
            </li>
            <li>
                <label>昵称</label>
                <input type="text" name="nickname" value="<?php echo empty($user['nickname']) ? '' : $user['nickname'] ?>" class="dfinput">
            </li>
            <li>
                <label>可用余额</label>
                <input type="text" name="balance" value="<?php echo empty($user['balance']) ? 9999 : $user['balance'] ?>" class="dfinput">
                <i>分</i>
            </li>
            <li>
                <label>失效时间</label>
                <input type="text" name="invalidTime" value="<?php echo empty($user['invalidTime']) ? '' : date('Y-m-d',$user['invalidTime']); ?>" class="dfinput" onclick="WdatePicker()">
            </li>
            <li>
                <label>负责学校</label>
                <ul style="float:left;">
                    <?php $checkedSchools = empty($user['schools']) ? array() : $user['schools']; ?>
                    <?php foreach ($schoolList as $v): ?>
                        <li>
                            <input type="checkbox" name="schools[]" value="<?php echo $v['id']; ?>" <?php echo  in_array($v['id'],$checkedSchools) ? 'checked' : '';  ?>/>
                            <?php echo $v['name']; ?>
                        </li>
                    <?php endforeach; ?>
                </ul>
            </li>       
            <li>
                <label>&nbsp;</label>
                <input name="" type="submit" class="btn" value="设为调试人员"/>
            </li>
        </ul>
    </form>
</div>

